<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/comm :: head " ></head>
<body>
<div class="wrapper">
	<header th:replace="common/comm :: header "></header>
	<div class="main-panel">
		<div class="content">
			<div class="container-fluid">
				<h4 class="page-title">
					<font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE" th:if="${attr == 'reg' }"
						  data--w-o-w_-i-n-d-e-x="43">招聘管理 > 简历登记</font>
					<font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE" th:if="${attr == 'upd' }"
						  data--w-o-w_-i-n-d-e-x="43">招聘管理 > 简历修改</font>
				</h4>
				<div class="row">
					<div class="col-md-12">



						<div class="card">

							<div class="card-body">
								<form class="form-inline" th:action="@{'/sys/resume/'+${attr}+'Save'}"  enctype="multipart/form-data" method="post" >
									<div class="form-group">
										<label for="low">应聘职位名称：&nbsp;&nbsp; </label>
										<input type="hidden" id="id" name="id" th:value="${resume.id}">
										<input type="hidden" id="rid" name="postId" >
										<input  readonly="readonly" class="form-control"  th:value="${post.name}"  />
										<img th:src="@{/images/search.png}" href="javascript:;"
											  data-toggle="modal"
											 data-target=".bs-example-modal-lg"/>
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group">
										<label for="low">应聘职位编码：&nbsp;&nbsp; </label>
										<input id="postCode" class="form-control" readonly="readonly"  th:value="${post.code}"  />
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group">
										<label for="low">职位分类：&nbsp;&nbsp; </label>
										<input  id="postType" class="form-control"  readonly="readonly" th:value="${postType.valueName}"  />
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group">
										<label for="code"><font> 姓名:&nbsp;&nbsp; </font></label>
										<input type="text" name="name" class="form-control"   th:value="${resume.name}" required="required" oninvalid="setCustomValidity('请输入姓名!')" oninput="setCustomValidity('')">
										<small  class="form-text text-muted"></small>
									</div>

									<div  class="form-group">
										<label for="testunit"> 性别: &nbsp;&nbsp; </label>
										<select  class="form-control" name="sex" >
											<option th:selected="${'男'==resume.sex}" th:value="男">男</option>
											<option th:selected="${'女'==resume.sex}" th:value="女">女</option>
										</select>

										<small  class="form-text text-muted"></small>
									</div>

									<div  class="form-group">
										<label for="testunit"> 招聘类型: &nbsp;&nbsp; </label>
										<select  class="form-control" name="recruitType"  >
											<option th:selected="${rtype.valueId==resume.recruitType}" th:each="rtype:${rtypes}" th:value="${rtype.valueId}" th:text="${rtype.valueName}" ></option>
										</select>
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group">
										<label for="testrange"> email:&nbsp;&nbsp; </label>
										<input name="email" class="form-control email" th:value="${resume.email}" />
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group">
										<label for="testrange"> 联系电话:&nbsp;&nbsp; </label>
										<input name="phone" class="form-control phone" th:value="${resume.phone}" />
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group">
										<label for="low">户口所在地：&nbsp;&nbsp; </label>
										<input name="koseki"  class="form-control"  th:value="${resume.koseki}"  />
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group">
										<label for="low">住址：&nbsp;&nbsp; </label>
										<input  class="form-control" name="address"  th:value="${resume.address}"  />
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group">
										<label for="low">政治面貌：&nbsp;&nbsp; </label>
										<input  class="form-control" name="politics" th:value="${resume.politics}"  />
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group">
										<label for="up">身份证号: &nbsp;&nbsp; </label>
										<input    class="form-control isCardNo" name="identityCard" th:value="${resume.identityCard}"/>
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group">
										<label for="up">毕业院校: &nbsp;&nbsp; </label>
										<input    class="form-control" name="college" th:value="${resume.college}"  />
										<small  class="form-text text-muted"></small>
									</div>

									<div  class="form-group">
										<label for="testunit"> 学历: &nbsp;&nbsp; </label>
										<select  class="form-control" name="education"  >
											<option th:selected="${edtype.valueId==resume.education}" th:each="edtype:${edtypes}" th:value="${edtype.valueId}" th:text="${edtype.valueName}" ></option>
										</select>
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group">
										<label for="up">专业: &nbsp;&nbsp; </label>
										<input    class="form-control" name="major" th:value="${resume.major}"  />
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group">
										<label for="up">工作经验: &nbsp;&nbsp; </label>
										<input    class="form-control" name="experience" th:value="${resume.experience}"  />
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group">
										<label for="up">薪资要求: &nbsp;&nbsp; </label>
										<input    class="form-control" name="salMonth" th:value="${resume.salMonth}"  />
										<small  class="form-text text-muted"></small>
									</div>

									<div  class="form-group">
										<label for="testunit"> 是否在职: &nbsp;&nbsp; </label>

										<select  class="form-control" name="isPost" >
											<option th:selected="${1==resume.isPost}" th:value="1">是</option>
											<option th:selected="${0==resume.isPost}"  th:value="0">否</option>
										</select>
										<small  class="form-text text-muted"></small>
									</div>

									<div  class="form-group">
										<label for="testunit"> 是否应届生: &nbsp;&nbsp; </label>
										<select  class="form-control" name="isGraduates" >
											<option th:selected="${1==resume.isGraduates}" th:value="1">是</option>
											<option th:selected="${0==resume.isGraduates}"  th:value="0">否</option>
										</select>

										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group" th:if="${attr=='upd'}">
										<label for="up">登记时间: &nbsp;&nbsp; </label>
										<input  readonly="readonly"   class="form-control" name="createdDate" th:value="${#dates.format(resume.createdDate, 'yyyy-MM-dd')}"   />
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group" th:if="${attr=='reg'}">
										<label for="up">登记时间: &nbsp;&nbsp; </label>
										<input  readonly="readonly"  class="form-control" name="createdDate" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}"  />
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group">
										<label for="testrange"> 个人履历:&nbsp;&nbsp; </label>
										<textarea class="form-control" rows="5" cols="105" th:text="${resume.record}"  name="record"></textarea>
										<small  class="form-text text-muted"></small>
									</div>



									<div class="form-group"   th:if="${attr=='reg'}" >
										<label for="up">简历附件: &nbsp;&nbsp; </label>
										<input  type="file"   class="form-control" name="affix" />
										<small  class="form-text text-muted"></small>
									</div>

									<div   th:if="${attr=='upd'}"  >
										<input type="hidden" id="affix" th:value="${resume.affixName}">
										<div class="form-group" style="display: none" id="uploadfile"  >
											<label for="up">简历附件: &nbsp;&nbsp; </label>
											<input  type="file"   class="form-control" name="affix" />
											<small  class="form-text text-muted"></small>
										</div>
										<div id="affixFile"></div>
									</div>


									<div  class="form-group">
										<label for="testunit"> 是否推荐面试: &nbsp;&nbsp; </label>
										<select  class="form-control" name="isInterview" id="isInterview" >
											<option th:selected="${resume.isInterview==1}" th:value="1">是</option>
											<option  th:selected="${resume.isInterview==0}"  th:value="0">否</option>
										</select>
										<small  class="form-text text-muted"></small>
									</div>



					<div id="tuijian"  >  <!--推荐模块-->
									<div class="form-group">
										<label for="up">推荐人: &nbsp;&nbsp; </label>
										<input th:if="${attr=='reg'}" type="hidden" name="referrer" th:value="${#session.getAttribute('userSession').id}">
										<input readonly="readonly"   class="form-control" th:value="${#session.getAttribute('userSession').username}"  />
										<small  class="form-text text-muted"></small>
									</div>


									<div class="form-group" th:if="${attr == 'reg'}">
										<label for="up">推荐时间: &nbsp;&nbsp; </label>
										<input  readonly="readonly"   class="form-control" name="referrerDate" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}"  />
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group" th:if="${attr == 'upd'}">
										<label for="up">推荐时间: &nbsp;&nbsp; </label>
										<input  th:if="${resume.referrerDate}!=null" readonly  class="form-control" name="referrerDate" th:value="${#dates.format(resume.referrerDate,'yyyy-dd-MM')}"  />
										<input  th:if="${resume.referrerDate}==null" readonly="readonly"   class="form-control" name="referrerDate" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}"  />
										<small  class="form-text text-muted"></small>
									</div>

									<div class="form-group">
										<label for="testrange"  > 推荐面试意见:&nbsp;&nbsp; </label>
										<textarea  class="form-control" rows="5" cols="105" th:text="${resume.referrerOpinion}" name="referrerOpinion"></textarea>
										<small  class="form-text text-muted"></small>
									</div>

					</div>
									<p>
										<!--<s:property value="message" />-->
									</p>

									<div class="form-group" style="text-align: center;">
										<input type="submit" class="btn btn-success" name="add" id="ausub" value="提交">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="button" th:onclick="'javascript:history.go(-1);'" class="btn btn-danger"  value="返回" >
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>

				<!-- Modal -->
				<div id="postin" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
					<div class="modal-dialog modal-lg" role="document">
						<div class="modal-content">
							<div class="modal-header">
								<span>应聘职位列表</span>
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
										aria-hidden="true">&times;</span></button>
							</div>
							<div class="modal-body">
								<input id="oId" type="hidden" th:value="${oId}"/>
								<form class="form-inline" th:action="@{/sys/post/showList(show='incl')}" method="post" id="formIndex2"
									  onsubmit="return false">
									<input type="hidden" id="showDiv" value="showList">
									<input type="hidden" value="1" name="pageIndex" id="formPageNo"/>
									&nbsp;&nbsp;职位名称:&nbsp;&nbsp;
									<input class="form-control " style="width: 130px" type="text" name="name" th:value="${name}"/>
									&nbsp;&nbsp;所属部门:&nbsp;&nbsp;
									<select class="form-control" name="oId">
									</select>
									<input type="hidden" name="isStart" value="1">
									&nbsp;&nbsp; &nbsp;&nbsp;<input type="button" id="sel"
																	value="查询" class="btn btn-default"
																	onclick="queryList(document.getElementById('formIndex2'),1)">
									&nbsp;&nbsp;
									&nbsp;&nbsp;<input type="button" id="ok" value="确定" class="btn btn-default">
									&nbsp;&nbsp;
								</form>
								<div id="showList" class="pageListShow"></div>
							</div>
						</div>
					</div>
				</div>


			</div>
		</div>
	</div>
	<footer th:replace="common/comm :: footer "></footer>
</div>
</body>
<script type="text/javascript" th:src="@{/js_hr/resume/addOrUpd.js}"></script>
<script th:src="@{/js_hr/post/post.js}"></script>
<!--<script th:inline="javascript">
	/*$("#isInterview").val("[[${resume.isInterview}]]");*/
</script>-->
</html>